package com.gof.example.command;

/**
 * Created with IntelliJ IDEA.
 * Created by zhiyuan on 2018/5/10 10:02.
 * haiming.fei@tongdun.cn
 */
public class MenuItem {

    private Command command;

    public MenuItem(Command command) {
        this.command = command;
    }

    public void click() {
        command.excute();
    }
}
